package com.wtwd.device.controller;


import com.wtwd.device.model.entity.ScheduleTask;
import com.wtwd.device.model.vo.ResultVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zdl
 * @since 2021-09-10
 */
@Api(tags = "定时管理")
@RestController
@RequestMapping("/schedule-task")
public class ScheduleTaskController {
    @ApiOperation(value = "添加定时任务",notes = "")
    @ApiResponses({@ApiResponse(code = 400, message = "参数错误")
    })
    @Transactional
    @PostMapping("/scheduleTask")
    public ResultVO add(@RequestBody ScheduleTask scheduleTaskModel) {
        return  ResultVO.success("未开放,敬请期待");
    }

}

